package com.sxf.controller.blog;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sxf.cache.CacheTool;

/**
 * 刷新缓存
 * 
 * @author SXF
 * 
 */
@Controller
@RequestMapping("blog")
public class RefreshCacheController {
	@Resource(name = "cacheTool")
	private CacheTool cacheTool;

	@RequestMapping(value = "/refresh")
	@ResponseBody
	public String refreshCache() throws Exception {
		cacheTool.init();
		return null;
	}
}
